import myAxios from "../MyAxios";
import BaseUrl from "../BaseUrl";
const actorApi = {
    /**
     * 电影模块接口
     * @returns 
     */
   //添加电影接口
   add:(params) => {
    return myAxios.post(BaseUrl +'movie-info/add',params)
   },
    //获取电影类型列表接口
   ListMovieTypes:() => {
     return myAxios.get(BaseUrl +'movie-types')
   },
   //加载电影列表接口
   List:(params) => {
    return myAxios.get(BaseUrl +'movie-infos',params)
   },
    //通过电影名称模糊查询
    ListByname:(params) => {
      return myAxios.post(BaseUrl +'movie-infos/name',params)
     },
   //删除电影接口
   delete:(params) => {
    return myAxios.post(BaseUrl +'movie-info/del',params)
   },
   //当前电影详细信息
   loadmovieinfo:(params)=> {
    return myAxios.get(BaseUrl +'movie-info/query',params)
   },
    //添加电影接口
    update:(params) => {
      return myAxios.post(BaseUrl +'movie-info/update',params)
     },
     //为电影添加演员
     bindActor:(params) => {
      return myAxios.post(BaseUrl + 'movie-info/bind-actor',params)
     }
}
export default actorApi;